package com.jeecms.wicool.manager.util;

import java.util.List;

import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.entity.util.Dictionary2;

public interface DictionaryMng {
	public Pagination getPage(String typeCode,int pageNo, int pageSize);
	
	public List<Dictionary2> getList(String typeCode);
	
	public List<String> getTypeList();

	public Dictionary2 findById(Integer id);
	
	public Dictionary2 findByValue(String type,String value);

	public Dictionary2 save(Dictionary2 bean);

	public Dictionary2 update(Dictionary2 bean);

	public Dictionary2 deleteById(Integer id);
	
	public Dictionary2[] deleteByIds(Integer[] ids);
	
	public Dictionary2 findByDicCode(String typeCode,Short dicCode);
	
	public boolean dicDeplicateValue(String value,String type);
}